home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
web
/
noweb
/
contrib
/
partingr
/
xpand
< prev
Wrap
Text File
|
1995-02-24
|
524b
|
21 lines
#!/usr/common/bin/perl
while(<>)
{
# expand wildcard references here, then process as normal
if(/^@(use|defn) (.*)$/)
{
$action=$1;
if($2=~/\.{3}$/)
{ @matches=grep(/^$2.*/i,split(/ñ/,$known));
if($#matches>0)
{ die "\nAmbiguous module name `$mod...'"; }
elsif($#matches==-1)
{ die "\nNo match for name `$mod...',line $i "; }
else
{ $mn=@matches[0]; $_="@$action $mn\n"; }
}
else { $known=$known . "ñ$2"; }
}
print STDOUT $_;
}